package com.sharefang.aproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * PPT实体类
 *
 * @author Lei 2016年7月29日16:36:04
 */

public class PptBean implements Parcelable {
    private boolean deleted;

    private int directoryId;

    private String filename;

    private int htmlSize;

    private String htmlUrl;

    private int lastRecordPage;

    private String md5;

    private int pageAmount;

    private int pptId;

    private int size;

    private String status;

    private String thumb;

    private String thumbLarge;

    private int thumbLargeSize;

    private String thumbMedium;

    private int thumbMediumSize;

    private long uploadTime;

    private int userId;

    protected PptBean(Parcel in) {
        deleted = in.readByte() != 0;
        directoryId = in.readInt();
        filename = in.readString();
        htmlSize = in.readInt();
        htmlUrl = in.readString();
        lastRecordPage = in.readInt();
        md5 = in.readString();
        pageAmount = in.readInt();
        pptId = in.readInt();
        size = in.readInt();
        status = in.readString();
        thumb = in.readString();
        thumbLarge = in.readString();
        thumbLargeSize = in.readInt();
        thumbMedium = in.readString();
        thumbMediumSize = in.readInt();
        uploadTime = in.readLong();
        userId = in.readInt();
    }

    public static final Creator<PptBean> CREATOR = new Creator<PptBean>() {
        @Override
        public PptBean createFromParcel(Parcel in) {
            return new PptBean(in);
        }

        @Override
        public PptBean[] newArray(int size) {
            return new PptBean[size];
        }
    };

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public boolean getDeleted() {
        return this.deleted;
    }

    public void setDirectoryId(int directoryId) {
        this.directoryId = directoryId;
    }

    public int getDirectoryId() {
        return this.directoryId;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFilename() {
        return this.filename;
    }

    public void setHtmlSize(int htmlSize) {
        this.htmlSize = htmlSize;
    }

    public int getHtmlSize() {
        return this.htmlSize;
    }

    public void setHtmlUrl(String htmlUrl) {
        this.htmlUrl = htmlUrl;
    }

    public String getHtmlUrl() {
        return this.htmlUrl;
    }

    public void setLastRecordPage(int lastRecordPage) {
        this.lastRecordPage = lastRecordPage;
    }

    public int getLastRecordPage() {
        return this.lastRecordPage;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getMd5() {
        return this.md5;
    }

    public void setPageAmount(int pageAmount) {
        this.pageAmount = pageAmount;
    }

    public int getPageAmount() {
        return this.pageAmount;
    }

    public void setPptId(int pptId) {
        this.pptId = pptId;
    }

    public int getPptId() {
        return this.pptId;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getSize() {
        return this.size;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return this.status;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getThumb() {
        return this.thumb;
    }

    public void setThumbLarge(String thumbLarge) {
        this.thumbLarge = thumbLarge;
    }

    public String getThumbLarge() {
        return this.thumbLarge;
    }

    public void setThumbLargeSize(int thumbLargeSize) {
        this.thumbLargeSize = thumbLargeSize;
    }

    public int getThumbLargeSize() {
        return this.thumbLargeSize;
    }

    public void setThumbMedium(String thumbMedium) {
        this.thumbMedium = thumbMedium;
    }

    public String getThumbMedium() {
        return this.thumbMedium;
    }

    public void setThumbMediumSize(int thumbMediumSize) {
        this.thumbMediumSize = thumbMediumSize;
    }

    public int getThumbMediumSize() {
        return this.thumbMediumSize;
    }

    public long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getUserId() {
        return this.userId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {

        parcel.writeByte((byte) (deleted ? 1 : 0));
        parcel.writeInt(directoryId);
        parcel.writeString(filename);
        parcel.writeInt(htmlSize);
        parcel.writeString(htmlUrl);
        parcel.writeInt(lastRecordPage);
        parcel.writeString(md5);
        parcel.writeInt(pageAmount);
        parcel.writeInt(pptId);
        parcel.writeInt(size);
        parcel.writeString(status);
        parcel.writeString(thumb);
        parcel.writeString(thumbLarge);
        parcel.writeInt(thumbLargeSize);
        parcel.writeString(thumbMedium);
        parcel.writeInt(thumbMediumSize);
        parcel.writeLong(uploadTime);
        parcel.writeInt(userId);
    }
}
